package com.stylefeng.guns.modular.system.dao;

import com.stylefeng.guns.modular.small.dto.ArtificerMeansDTO;
import com.stylefeng.guns.modular.system.model.ArtificerMeans;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 技师列表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-01
 */
public interface ArtificerMeansMapper extends BaseMapper<ArtificerMeans> {

    List<ArtificerMeans> searchArtificerMeansList(@Param(value = "viewProfessionalTitle") String viewProfessionalTitle, @Param(value = "distance") Boolean distance, @Param(value = "evaluation") Boolean evaluation, @Param(value = "consumerLongitude") String consumerLongitude, @Param(value = "consumerLatitude") String consumerLatitude);

    ArtificerMeansDTO searchDeatil(ArtificerMeansDTO artificerMeansDTO);

    List<Map> getArtBussList(Integer id);

    List<Map> getCommentList(Integer id);

    List<ArtificerMeans> orderList(@Param(value = "viewProfessionalTitle") String viewProfessionalTitle, @Param("sex") String sex, @Param("isOnline") Boolean isOnline, @Param(value = "consumerLongitude") Double consumerLongitude, @Param(value = "consumerLatitude") Double consumerLatitude,@Param(value = "distance") Integer distance,@Param(value = "distanceSort")Boolean distanceSort,@Param(value = "evaluation")Boolean evaluation);

    List<ArtificerMeans> selectByparam(@Param(value = "lat")String lat,@Param(value = "lng") String lng,@Param(value = "sex")  String sex,@Param(value = "isOnline") String isOnline,@Param(value = "distance") Integer distance);

    List<Map> findAllComment(@Param(value = "id")Integer id);
}
